﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using DataAccessLayer;

namespace ATM_Pro.Public
{
    public class UserEnterCheck
    {
        public UserEnterCheck()
        {
            helper = new AccessHelper(Properties.Settings.Default.AccessConnectiongString);
        }
        AccessHelper helper = null;

        public bool CheckUser(string name,string pwd)
        {
            string sql = "select count(*) from tb_UserInfo where uName='" + name + "' and uPwd='" + pwd + "'";
            return helper.Exists(sql);
        }
    }
}
